import React from 'react';
import ReactDOM from 'react-dom/client';
import { Provider } from 'react-redux';
import { BrowserRouter } from "react-router-dom";
// import { ConfigProvider } from 'antd';
import reportWebVitals from 'src/reportWebVitals';
import store from 'src/redux/store';
import Router from 'src/router/Routers'
import { LocaleProvider } from 'src/react-antd-i18n'
import locales from './locales'
import 'src/assets/style/global.less';

const root = ReactDOM.createRoot(document.getElementById('root'));

const element = <React.StrictMode>
  <Provider store={store}>
    <BrowserRouter>
      <LocaleProvider locales={locales}>
        <Router index />
      </LocaleProvider>
    </BrowserRouter>
  </Provider>
</React.StrictMode>
root.render(element)



// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
